package com.onLineCar.es.feign;

import com.godGuang.common.core.domain.Result;
import com.onLineCar.es.domain.Content;
import com.onLineCar.es.feign.impl.PatientsDataImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;


/**
 * patientsData远程调用
 */
@FeignClient(name = "patients" ,fallback = PatientsDataImpl.class)
public interface PatientsData {


    /**
     * 获取内容列表
     *
     * @return 返回内容列表
     */
    @PostMapping("/content/list")
    public Result<List<Content>> list();

}
